package io.renren.modules.ranking.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.ranking.dao.IllegalCrossingDao;
import io.renren.modules.ranking.entity.IllegalCrossingEntity;
import io.renren.modules.ranking.service.IllegalCrossingService;



@Service("illegalCrossingService")
public class IllegalCrossingServiceImpl implements IllegalCrossingService {
	@Autowired
	private IllegalCrossingDao illegalCrossingDao;
	
	@Override
	public IllegalCrossingEntity queryObject(Integer id){
		return illegalCrossingDao.queryObject(id);
	}
	
	@Override
	public List<IllegalCrossingEntity> queryList(Map<String, Object> map){
		return illegalCrossingDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return illegalCrossingDao.queryTotal(map);
	}
	
	@Override
	public void save(IllegalCrossingEntity illegalCrossing){
		illegalCrossingDao.save(illegalCrossing);
	}
	
	@Override
	public void update(IllegalCrossingEntity illegalCrossing){
		illegalCrossingDao.update(illegalCrossing);
	}
	
	@Override
	public void delete(Integer id){
		illegalCrossingDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		illegalCrossingDao.deleteBatch(ids);
	}
	
}
